<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:th="http://www.thymeleaf.org"
  xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorate="~{layout.html}">
	<head>
		<title>Taco Cloud</title>
	</head>
	
	<body>
		<h2>Taco Cloud Admin: Ingredients</h2>
		
		<form method="POST" th:action="@{/admin/ingredients}">
			ID: <input type="text" name="id"></input><br/>
			Name: <input type="text" name="name"></input><br/>
			Type: <input type="type" name="type"></input><br/>
			<input type="submit" />
		</form>
		
		<hr/>
		
		<ul>
			<li th:each="ingredient: ${ingredients}" th:text="${ingredient.name}"></li>
		</ul>
	</body>
</html>